﻿
// 2023/2/28: 首个版本
// 2023/4/19: open增加frameSize参数，移除hintWidth参数
// 2025/7/16: 移除SPADAS_DEPRECATED_HIDE
// 2025/11/4: 析构时调用close

#ifndef MJPEG_DECODER_CPU_H_
#define MJPEG_DECODER_CPU_H_

#include "NextCompatibleImage.h"

namespace videonext
{
	using namespace spadas;

	class MJpegDecoderCPU : public Object<class MJpegDecoderCPUVars>
	{
	public:
		MJpegDecoderCPU();
		Bool open(Size2D frameSize);
		void close();
		// return: AVFrameYUV420P
		CompatibleImage decode(Binary packetData);
	};
}

#endif
